<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div>
    <!--v-model让文本框的值双向绑定(变量影响页面,页面也影响变量)-->
    <input type="text" v-model="info">
    <p>{{info}}</p>
</div>
<!--引入vue框架-->
<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
<script>
    let v=new Vue({
        el:"div",
        data:{
            info:"双向绑定"
        }
    })
</script>
</body>
</html>